<template>
<div class="warp">
  <ul>
    <li v-for="item in items">
      {{ item.name }}
    </li>
  </ul>
</div>
</template>

<script>
import {
  host
} from '../option'

export default {
  data() {
    return {
      name: 'hello',
      items: [],
    }
  },
  mounted: function() {
    var url = host + 'hospital/get-speciality-info?access_token=1230a4e8-6284-4a5c-b23a-4da9afee7f84';
    this.$http.get(url).then((response) => {
      console.log(response);
      this.items = response.body.items;
    });
  },
}
</script>

<style>
blockquote,
body,
button,
code,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  position: relative;
  margin: 0;
  padding: 0;
}
</style>
